package com.project2.controller;

import com.project2.bean.ResultVo;
import com.project2.bean.vo.WxAllGoodsVo;
import com.project2.service.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：HsDsg
 * @date ：2022/8/14 17:24
 * @description：TODO
 */

@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;


    /*
    TODO:商品首届面回显
     */
    @RequestMapping("index")
    public ResultVo index(){
        WxAllGoodsVo allGoods = wxHomeService.getAllGoods();
        return ResultVo.ok(allGoods);
    }

}
